package com.piz.dao.product;

import java.util.List;

import com.piz.dao.common.PizHiberImpl;
import com.piz.dao.common.UnexpectedDBException;
import com.piz.model.Serve;

/**
 * @author prameetk.sharma
 *
 */
public class ProductServeDao  extends PizHiberImpl<Serve>{
	
	/**
	 * @return
	 */
	public List<Serve> getAllServes()
	{
		try {
			String hqlQuery = "from Serve where id >=0";
			return (List<Serve>) executeHQL(hqlQuery);
			
		} catch (Exception e) {
			throw new UnexpectedDBException("No Serve Type is available.", e);
		}
	}


}
